package com.member.shop.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.member.shop.domain.SysBizRaffleResults;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 抽奖结果Mapper接口
 *
 * @author thomas
 * @date 2024-03-21
 */
public interface SysBizRaffleResultsMapper extends BaseMapper<SysBizRaffleResults> {
    /**
     * 查询抽奖结果
     *
     * @param resultId 抽奖结果主键
     * @return 抽奖结果
     */
    public SysBizRaffleResults selectSysBizRaffleResultsByResultId(Long resultId);

    /**
     * 查询抽奖结果列表
     *
     * @param sysBizRaffleResults 抽奖结果
     * @return 抽奖结果集合
     */
    public List<SysBizRaffleResults> selectSysBizRaffleResultsList(SysBizRaffleResults sysBizRaffleResults);

    /**
     * 新增抽奖结果
     *
     * @param sysBizRaffleResults 抽奖结果
     * @return 结果
     */
    public int insertSysBizRaffleResults(SysBizRaffleResults sysBizRaffleResults);

    /**
     * 修改抽奖结果
     *
     * @param sysBizRaffleResults 抽奖结果
     * @return 结果
     */
    public int updateSysBizRaffleResults(SysBizRaffleResults sysBizRaffleResults);

    /**
     * 删除抽奖结果
     *
     * @param resultId 抽奖结果主键
     * @return 结果
     */
    public int deleteSysBizRaffleResultsByResultId(Long resultId);

    /**
     * 批量删除抽奖结果
     *
     * @param resultIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysBizRaffleResultsByResultIds(Long[] resultIds);


    List<SysBizRaffleResults> selectByActivitId(@Param("activityId")Long activityId, @Param("uid") Long uid);
}
